from django.contrib import admin
from .models import Comment

# Register your models here.


from django.contrib import admin
from .models import Comment


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ['id', 'nickname', 'email', 'post', 'created_time']
    list_display_links = ['nickname']
    fields = ['nickname', 'email', 'content', 'post']
    readonly_fields = ['post']
